package org.dromara.business.service;

import org.dromara.business.domain.Answer;
import org.dromara.business.domain.vo.AnswerVo;
import org.dromara.business.domain.bo.AnswerBo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 客服问答Service接口
 *
 * @author zlj
 * @date 2024-08-28
 */
public interface AnswerService extends IService<Answer> {

    /**
     * 查询客服问答
     */
    AnswerVo queryById(Long answerId);

    /**
     * 查询客服问答列表
     */
    TableDataInfo<AnswerVo> queryPageList(AnswerBo bo, PageQuery pageQuery);

    /**
     * 查询客服问答列表
     */
    List<AnswerVo> queryList(AnswerBo bo);

    /**
     * 新增客服问答
     */
    Boolean insertByBo(AnswerBo bo);

    /**
     * 修改客服问答
     */
    Boolean updateByBo(AnswerBo bo);

    /**
     * 校验并批量删除客服问答信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
